﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CardGame
{
    public class Player
    {
        public Player(string name)
        {
            if (string.IsNullOrWhiteSpace(name))
            {
                throw new ArgumentNullException("name", "You must specify a name.");
            }

            this.Name = name;
        }
        
        public string Name { get; private set; }

        public override string ToString()
        {
            return this.Name;
        }
    }
}